package com.beta.service.impl;

import com.baomidou.framework.service.impl.SuperServiceImpl;
import com.beta.entity.CustomerManagers;
import com.beta.mapper.CustomerManagersMapper;
import com.beta.service.ICustomerManagersService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

/**
 *
 * CustomerManagers 表数据服务层接口实现类
 *
 */
@Service
public class CustomerManagersService extends SuperServiceImpl<CustomerManagersMapper, CustomerManagers> implements ICustomerManagersService {

    @Override
    public CustomerManagers getCustomerManagerByCode(String code) {
        if (StringUtils.isBlank(code)) {
            return null;
        }

        return baseMapper.selectOne(new CustomerManagers().setCode(code));
    }
}